home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 November / november_2001.iso / Browsers / Netscape 6.1 / browser.xpi / bin / chrome / toolkit.jar / content / global / xul.css < prev   
Encoding:
Cascading Style Sheet File  |  2001-06-27  |  16.2 KB  |  696 lines

  1. /** this should only contain XUL dialog and document window widget defaults. Defaults for widgets of
  2.     a particular application should be in that application's style sheet.
  3.     For example style definitions for navigator can be found in navigator.css
  4.  
  5.    THIS FILE IS LOCKED DOWN.  YOU ARE NOT ALLOWED TO MODIFY IT WITHOUT FIRST HAVING YOUR
  6.    CHANGES REVIEWED BY hyatt@netscape.com.
  7. **/
  8.  
  9. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
  10. @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
  11. @namespace xbl url("http://www.mozilla.org/xbl"); /* namespace for XBL elements */
  12.  
  13. * {
  14.   -moz-user-focus: ignore;
  15.   display: -moz-xul-box;
  16. }
  17.  
  18. /* hide the content and destroy the frame */
  19. *[hidden="true"] {
  20.   display: none;
  21. }
  22.  
  23. /* hide the content, but don't destroy the frames */
  24. *[collapsed="true"], 
  25. *[moz-collapsed="true"] {
  26.   visibility: collapse;
  27. }
  28.  
  29. /****** elements that have no visual representation ******/
  30.  
  31. data,
  32. xbl|children,
  33. commands, commandset, command,
  34. broadcasterset, broadcaster, observes,
  35. keyset, key, 
  36. template, rule, conditions, action, 
  37. bindings, binding, content, member, triple {
  38.     display: none;
  39. }
  40.  
  41. /********** focus rules **********/
  42.  
  43. checkbox,
  44. colorpicker[type="button"],
  45. menulist,
  46. outliner {
  47.   -moz-user-focus: normal;
  48. }
  49.  
  50. menulist[editable="true"],
  51. popup, menupopup,
  52. scrollbar, scrollbarbutton, slider, thumb, autorepeater,
  53. splitter, statusbar, statusbarpanel,
  54. toolbox, menubar, toolbar {
  55.   -moz-user-focus: ignore;
  56. }
  57.  
  58. outlinercol, outlinerrows,outlinerbody,
  59. radio {
  60.   -moz-user-focus: none;
  61. }
  62.  
  63. radiogroup {
  64.   -moz-user-focus: normal;
  65. }
  66.  
  67. /******** window ******/
  68.  
  69. window { 
  70.   overflow: hidden;
  71. }
  72.  
  73. /******** box *******/
  74.  
  75. box[autostretch="never"] {
  76.   vertical-align: middle;
  77. }
  78.  
  79. box[autostretch="never"][valign="top"] {
  80.   vertical-align: top;
  81. }
  82.  
  83. box[autostretch="never"][valign="bottom"] {
  84.   vertical-align: bottom;
  85. }
  86.  
  87. box[autostretch="never"][halign="center"] {
  88.   text-align: center;
  89. }
  90.  
  91. box[autostretch="never"][halign="right"] {
  92.   text-align: right;
  93. }
  94.  
  95. vbox {
  96.   -moz-xul-box-orient: vertical;
  97. }
  98.  
  99. /******** bulletinboard *******/
  100.  
  101. bulletinboard {
  102.   display: -moz-xul-bulletinboard;
  103. }
  104.  
  105. /********** button **********/
  106.  
  107. button,
  108. button.left {
  109.   -moz-binding: url("chrome://global/content/bindings/button.xml#buttonleft");
  110. }
  111.  
  112. button.top {
  113.   -moz-binding: url("chrome://global/content/bindings/button.xml#buttontop");
  114. }
  115.  
  116. button.right {
  117.   -moz-binding: url("chrome://global/content/bindings/button.xml#buttonright");
  118. }
  119.  
  120. button.bottom {
  121.   -moz-binding: url("chrome://global/content/bindings/button.xml#buttonbottom");
  122. }
  123.  
  124. /******** browser, editor, iframe ********/
  125.  
  126. browser,
  127. editor,
  128. iframe {
  129.   display: inline;
  130. }
  131.  
  132. browser {
  133.   -moz-binding: url("chrome://global/content/bindings/general.xml#browser");
  134. }
  135.  
  136. editor {
  137.   -moz-binding: url("chrome://global/content/bindings/general.xml#editor");
  138. }
  139.  
  140. iframe {
  141.   -moz-binding: url("chrome://global/content/bindings/general.xml#iframe");
  142. }
  143.  
  144. /********** checkbox **********/
  145.  
  146. checkbox {
  147.   -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox");
  148. }
  149.  
  150. /********** radio **********/
  151.  
  152. radiogroup {
  153.   -moz-binding: url("chrome://global/content/bindings/radio.xml#radiogroup");
  154. }
  155.  
  156. radio {
  157.   -moz-binding: url("chrome://global/content/bindings/radio.xml#radio");
  158. }
  159.  
  160. /******** titledbox *******/
  161.  
  162. titledbox {
  163.   -moz-binding: url("chrome://global/content/bindings/titledbox.xml#titledbox");
  164.   display: -moz-xul-groupbox;
  165. }
  166.  
  167. label {
  168.   -moz-binding: url("chrome://global/content/bindings/titledbox.xml#label");
  169. }
  170.  
  171. .titledbox-body {
  172.   text-align: inherit;
  173.   vertical-align: inherit;
  174. }
  175.   
  176. /******* toolbar *******/
  177.  
  178. toolbox { 
  179.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbox");
  180. }
  181.   
  182. toolbar {
  183.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
  184. }
  185.  
  186. toolbargrippy {
  187.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbargrippy");
  188. }
  189.  
  190. toolbarseparator {
  191.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbarseparator");
  192. }
  193.  
  194. .toolbar-holder[collapsed="true"] {
  195.   visibility: collapse;
  196. }
  197.  
  198. /********* menubar ***********/
  199.  
  200. menubar {
  201.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar");
  202. }
  203.  
  204. /********* menu ***********/
  205.  
  206. menubar > menu {
  207.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-menubar");
  208. }
  209.  
  210. menubar > menu.menu-iconic {
  211.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-menubar-iconic");
  212. }
  213.  
  214. menu {
  215.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menu");
  216. }
  217.   
  218. menu.menu-iconic {
  219.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-iconic");
  220. }
  221.  
  222. /********* menuitem ***********/
  223.  
  224. menuitem {
  225.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem");
  226. }
  227.  
  228. menuitem.menuitem-iconic {
  229.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
  230. }
  231.  
  232. menuitem[type="checkbox"],
  233. menuitem[type="radio"] {
  234.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
  235. }
  236.  
  237. menuitem.menuitem-non-iconic {
  238.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menubutton-item");
  239. }
  240.  
  241. /********* menuseparator ***********/
  242.  
  243. menuseparator {
  244.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuseparator");
  245. }
  246.  
  247. /********* popup & menupopup ***********/
  248.  
  249. popup,
  250. menupopup {
  251.   -moz-binding: url("chrome://global/content/bindings/popup.xml#popup");
  252.   -moz-xul-box-orient: vertical;
  253.   display: none;
  254.   z-index: 2147483647; 
  255. }
  256.  
  257. menupopup[menugenerated="true"],
  258. popup[menugenerated="true"] {
  259.   display: -moz-xul-popup;
  260. }
  261.  
  262. popup.tooltip,
  263. .popup-infopopup {
  264.   -moz-binding: url("chrome://global/content/bindings/popup.xml#tooltips");
  265. }
  266.  
  267. /********** floating popups **********/
  268.   
  269. titlebar {
  270.   -moz-binding: url("chrome://global/content/bindings/popup.xml#titlebar");  
  271. }  
  272.  
  273. resizer[direction="right"] {
  274.   -moz-binding: url("chrome://global/content/bindings/popup.xml#r-resizer");
  275. }  
  276.  
  277. resizer[direction="bottom"] {
  278.   -moz-binding: url("chrome://global/content/bindings/popup.xml#b-resizer");
  279. }  
  280.  
  281. resizer[direction="bottomright"] {
  282.   -moz-binding: url("chrome://global/content/bindings/popup.xml#rb-resizer");  
  283. }  
  284.  
  285. popup[type="floater"] {
  286.   -moz-binding: url("chrome://global/content/bindings/popup.xml#floater-normal");
  287. }
  288.  
  289. popup[type="floater"][docked="left"] {
  290.   -moz-binding: url("chrome://global/content/bindings/popup.xml#floater-dock-left");
  291. }
  292.  
  293. button.popupClose {
  294.   -moz-binding: url("chrome://global/content/bindings/popup.xml#close-button") !important;
  295. }  
  296.  
  297. /******** grid **********/
  298.  
  299. grid {
  300.   display: -moz-xul-grid;
  301. }
  302.  
  303. rows, 
  304. columns {
  305.   display: -moz-xul-grid-group;
  306. }
  307.  
  308. row,
  309. column {
  310.   display: -moz-xul-grid-line;
  311. }
  312.  
  313. rows {
  314.   -moz-xul-box-orient: vertical;
  315. }
  316.  
  317. row {
  318.   vertical-align: middle;
  319. }
  320.  
  321. column {
  322.   -moz-xul-box-orient: vertical;
  323. }
  324.  
  325. /******** tree **********/
  326.  
  327. tree {
  328.  -moz-binding: url("chrome://global/content/bindings/tree.xml#tree");
  329. }
  330.  
  331. treehead, treecol, treerows, treerow, treecolgroup, treechildren {
  332.  -moz-binding: url("chrome://global/content/bindings/tree.xml#tree-base");
  333. }
  334.  
  335. tree > treechildren {
  336.  -moz-binding: url("chrome://global/content/bindings/tree.xml#treerows");
  337. }
  338.  
  339. treeitem { 
  340.  -moz-binding: url("chrome://global/content/bindings/tree.xml#treeitem");
  341. }
  342.  
  343. /* treecells */
  344.  
  345. treecell { 
  346.  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell");
  347.  
  348. .treecell-indent {
  349.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-indented-leaf");
  350. }
  351.  
  352. treeitem[container="true"] > treerow > .treecell-indent {
  353.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-indented-folder");
  354. }
  355.  
  356. .treecell-iconic {
  357.  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-iconic");
  358. }
  359.  
  360. .treecell-image {
  361.  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-image");
  362. }
  363.  
  364. .treecell-align-right {
  365.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-align-right");
  366. }
  367.  
  368. /* tree headers */
  369.  
  370. .treecell-header, .treecell-inset-header {
  371.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-header");
  372. }
  373.  
  374. .treecell-header-image {
  375.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-header-image");
  376. }
  377.  
  378. /* internal parts */
  379.  
  380. .treecell-text { 
  381.  -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-text");
  382.  
  383. /* Inline Editable Treecell */
  384. .treecell-editable {
  385.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-inline-edit");
  386. }
  387.  
  388. .treecell-indent.treecell-editable {
  389.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-indented-leaf-inline-edit");
  390. }
  391.  
  392. treeitem[container="true"] > treerow > .treecell-indent.treecell-editable {
  393.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecell-indented-folder-inline-edit");
  394. }
  395.  
  396. /******** outliner ******/
  397.  
  398. outliner {
  399.  -moz-binding: url("chrome://global/content/bindings/outliner.xml#outliner");
  400. }
  401.  
  402. outlinercol {
  403.  -moz-binding: url("chrome://global/content/bindings/outliner.xml#outlinercol");
  404. }
  405.  
  406. outlinercol.outlinercol-image {
  407.  -moz-binding: url("chrome://global/content/bindings/outliner.xml#outlinercol-image");
  408. }
  409.  
  410. outlinerbody {
  411.  -moz-binding: url("chrome://global/content/bindings/outliner.xml#outlinerbody");
  412. }
  413.  
  414. outlinerrows {
  415.  -moz-binding: url("chrome://global/content/bindings/outliner.xml#outlinerrows");
  416. }
  417.  
  418. outlinercol.outliner-columnpicker {
  419.   -moz-binding: url("chrome://global/content/bindings/outliner.xml#columnpicker");
  420. }
  421.  
  422. outlinercol[hidden="true"] {
  423.   visibility: collapse;
  424.   display: -moz-xul-box;
  425. }
  426.  
  427. /********** deck & stack *********/
  428.  
  429. deck {
  430.   display: -moz-xul-deck;
  431. }
  432.  
  433. stack {
  434.   display: -moz-xul-stack;
  435. }
  436.  
  437. :-moz-xul-deck-hidden {
  438.    visibility: hidden;
  439. }
  440.  
  441. /********** tabbox *********/
  442.  
  443. tabbox {
  444.   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabbox");
  445. }
  446.  
  447. tabs {
  448.   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabs");
  449. }
  450.  
  451. tab {
  452.   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tab");
  453. }
  454.  
  455. tabpanels {
  456.   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabpanels");
  457.   display: -moz-xul-deck;
  458. }
  459.  
  460. /********** progressmeter **********/
  461.  
  462. progressmeter {
  463.   -moz-binding: url("chrome://global/content/bindings/progressmeter.xml#progressmeter");
  464. }
  465.  
  466. /********** text **********/
  467.  
  468. text, spring {
  469.   display: inline;
  470. }
  471.  
  472. html {
  473.   display: block;
  474. }
  475.  
  476. text[for] {
  477.   -moz-binding: url("chrome://global/content/bindings/text.xml#text-label");
  478. }
  479.  
  480. text[editable="true"] {
  481.   -moz-user-select: text;
  482. }
  483.  
  484. text[editable="true"],
  485. text[editable="true"][mode="display"] {
  486.   -moz-binding: url("chrome://global/content/bindings/text.xml#text-editable-display");
  487. }
  488.  
  489. text[editable="true"][mode="edit"] {
  490.   -moz-binding: url("chrome://global/content/bindings/text.xml#text-editable-edit");
  491. }
  492.  
  493. /********** textbox **********/
  494.  
  495. textbox {
  496.   -moz-binding: url("chrome://global/content/bindings/textbox.xml#textbox");
  497.   -moz-user-select: text;
  498. }
  499.  
  500. textbox[multiline="true"] {
  501.   -moz-binding: url("chrome://global/content/bindings/textbox.xml#textarea");
  502. }
  503.  
  504. /********** autocomplete textbox **********/
  505.  
  506. textbox[type="autocomplete"] {
  507.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete");
  508. }
  509.  
  510. .autocomplete-internal-box {
  511.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-internal-box");
  512. }
  513.  
  514. .autocomplete-result-popup {
  515.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-result-popup") !important;
  516. }
  517.  
  518. .autocomplete-history-popup {
  519.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-history-popup") !important;
  520. }
  521.  
  522. .autocomplete-outliner {
  523.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-outliner") !important;
  524. }
  525.  
  526. .autocomplete-outlinerbody {
  527.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-outlinerbody") !important;
  528. }
  529.  
  530. .autocomplete-outlinerrows {
  531.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-outlinerrows") !important;
  532. }
  533.  
  534. .autocomplete-outlinercol {
  535.   -moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-outlinercol") !important;
  536. }
  537.  
  538. /********** colorpicker **********/
  539.  
  540. colorpicker {
  541.   -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpicker");
  542. }
  543.  
  544. colorpicker[type="button"] {
  545.   -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpicker-button");
  546. }
  547.  
  548. /********** menulist **********/
  549.  
  550. menulist {
  551.   -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist");
  552. }
  553.  
  554. menulist[editable="true"] {
  555.   -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-editable") !important;
  556. }
  557.  
  558. menulist > menupopup > menuitem {
  559.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic") !important;
  560. }
  561.  
  562. /********** menubutton **********/
  563.  
  564. menubutton {
  565.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-single-left");
  566. }
  567.  
  568. menubutton.right {
  569.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-single-right");
  570. }
  571.  
  572. menubutton.top {
  573.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-single-top");
  574. }
  575.  
  576. menubutton.bottom {
  577.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-single-bottom");
  578. }
  579.  
  580. .menubutton-dual,
  581. .menubutton-dual.left {
  582.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-dual-left");
  583. }
  584.   
  585. .menubutton-dual.top {
  586.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-dual-top");
  587. }
  588.   
  589. .menubutton-dual.right {
  590.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-dual-right");
  591. }
  592.   
  593. .menubutton-dual.bottom {
  594.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-dual-bottom");
  595. }
  596.   
  597. .menubutton-icon {
  598.   -moz-binding: url("chrome://global/content/bindings/menubutton.xml#menubutton-icon");
  599.  
  600. /********** splitter **********/
  601.  
  602. splitter {
  603.   -moz-binding: url("chrome://global/content/bindings/splitter.xml#splitter");
  604. }
  605.  
  606. grippy {
  607.   -moz-binding: url("chrome://global/content/bindings/splitter.xml#grippy");
  608. }
  609.  
  610. .tree-splitter {
  611.   width: 0px;
  612.   max-width: 0px;
  613. }
  614.  
  615. /********** scrollbar **********/
  616.  
  617. scrollbar, scrollbarbutton, slider, thumb {
  618.   -moz-user-select: none;
  619. }
  620.  
  621. scrollbar[value="hidden"] {
  622.   visibility: hidden;
  623. }
  624.  
  625. /******** scrollbox ********/
  626.  
  627. scrollbox {
  628.   -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#scrollbox");
  629. }
  630.  
  631. arrowscrollbox {
  632.   -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#arrowscrollbox");
  633.   display: -moz-xul-stack;
  634. }
  635.  
  636. autorepeatbutton.up {
  637.   -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#autorepeatbutton-up");  
  638. }
  639.  
  640. autorepeatbutton.down {
  641.   -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#autorepeatbutton-down");  
  642. }
  643.  
  644. .scrollbox-innerbox {
  645.   text-align: inherit;
  646.   vertical-align: inherit;
  647. }
  648.  
  649. /********** statusbar **********/
  650.  
  651. statusbarpanel {
  652.   -moz-binding: url("chrome://global/content/bindings/general.xml#statusbar-panel");
  653. }
  654.  
  655. /********** stringbundle **********/
  656.  
  657. stringbundleset {
  658.   -moz-binding: url("chrome://global/content/bindings/stringbundle.xml#stringbundleset");
  659.   visibility: collapse;
  660. }
  661.  
  662. stringbundle {
  663.   -moz-binding: url("chrome://global/content/bindings/stringbundle.xml#stringbundle");
  664.   visibility: collapse;
  665. }
  666.  
  667. /********** resourcebundle **********/
  668. resourcebundle {
  669.   visibility: collapse;
  670. }  
  671.  
  672. /********** wizard **********/
  673.  
  674. wizard {
  675.   -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard");
  676.   -moz-xul-box-orient: vertical;
  677. }
  678.  
  679. wizardpage {
  680.   -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizardpage");
  681.   -moz-xul-box-orient: vertical;
  682.   overflow: auto;
  683. }
  684.  
  685. .wizard-header {
  686.   -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-header");
  687. }
  688.  
  689. .wizard-buttons {
  690.   -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-buttons");
  691. }
  692.  
  693.